using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

/// <summary>
/// Unity编辑器菜单扩展
/// </summary>
public class MenuExtention
{
    
    [MenuItem("MenuExtend/TestEntry",false,11)]
    static void TestEntry()
    {
        Debug.Log("Entry Execute");
    }

    //%(ctrl) #(shift) &(alt) UP/LEFT/DOWN/RIGHT
    [MenuItem("MenuExtend/TestEntry %9",true)]
    static bool TestEntryJudge()
    {
        return active;
    }
    
    
    static bool active;

    [MenuItem("MenuExtend/ChangeActive",false,0)]
    static void ChangeActive()
    {
        active = !active;
    }
}
